package fuxi01_lombok_override_array_20250707;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class Animal {
    private String ani_name;
    private int ani_age;

//    定义的方法必须在类内部
    public String eat(String food){
        return food;
    }
}


